﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using TDSoft.Interface;
using TDSoft.Menu;

namespace TDSoft.App
{
    class AppEventsHandle
    {
        private FormMain frmMain = new FormMain();
        private mnThu _mnThu;
        private Form1 frmForm1 = new Form1();
        public AppEventsHandle(FormMain _frmMain) 
        {
            frmMain = _frmMain;
            frmMain.button1.Click += new EventHandler(button1_Click);
        }
        void button1_Click(object sender, EventArgs e)
        {
            if (_mnThu == null) _mnThu = new mnThu(frmForm1);
            frmForm1.ShowDialog();
        }
    }
}
